package com.example.blog.dto.comments;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;


@Data
public class CommunicationSendDto {
    private long sender;    //发送用户
    @NotBlank(message = "接收人不能为空")
    @Min( value = 1,message = "该值最小为1" )
    private long recipient; //接受用户
    @NotBlank(message = "发送人不能为空")
    private String message;

}
